[PATCH libaio 05/14] Use new symver function attribute to support LTO builds
authorGuillem Jover <guillem@hadrons.org>
Tue, 2 Nov 2021 21:37:32 +0000 (22:37 +0100)
committerGuillem Jover <guillem@debian.org>
Wed, 18 Jan 2023 00:35:12 +0000 (00:35 +0000)
commitc7b7e825b6944b3e19b622351e67f143ab3a7047
tree2c40c1a9ff88494b475af3d9382a83826975feb3
parenta01772c038be3e4ce741cfd034054c8a91ffe212
[PATCH libaio 05/14] Use new symver function attribute to support LTO builds

From 3ec8be29fc945238788f1fc7f0d998b145a761c7 Mon Sep 17 00:00:00 2001
Origin: vendor
Forwarded: https://marc.info/?l=linux-aio&m=164999309520544

The LTO support cannot work properly when there are versioned symbols
via asm statements, as those are not seen by the compiler. Use the new
function attributes if supported instead of the asm statements.

We need to move the SYMVER calls after the function definitions
otherwise it will reference symbols not yet seen.

Signed-off-by: Guillem Jover <guillem@hadrons.org>
Gbp-Pq: Name 0005-Use-new-symver-function-attribute-to-support-LTO-bui.patch
src/compat-0_1.c
src/syscall.h